import router1 from './router1'
import router11 from './router11'
import router2 from './router2'
import router21 from './router21'
import router3 from './router3'
import router31 from './router31'

/**
 * 【采购商】路由配置
 */

export default [
  {
    path: '/project1/login',
    meta:{index:1},//meta对象的index用来定义当前路由的层级,由小到大,由低到高
    component: resolve => require(['@/components/project1/common/Login'], resolve)
  },
  {
    path: '/project1/home',
    meta:{index:0},//meta对象的index用来定义当前路由的层级,由小到大,由低到高
    component: resolve => require(['@/components/project1/common/Home'], resolve),
    children: [
      {
        path: '/project1/view1/index',
        meta:{index:1},
        component: resolve => require(['@/components/project1/view1/Index'], resolve),
        children: router1
      },
      {
        path: '/project1/view2/index',
        meta:{index:2},
        component: resolve => require(['@/components/project1/view2/Index'], resolve),
        children: router2
      },
      {
        path: '/project1/view3/index',
        meta:{index:3},
        component: resolve => require(['@/components/project1/view3/Index'], resolve),
        children: router3
      },
    ]
  },
  // ====Home外页面=============================================================================
  {
    path: '/project1/view1/page',
    meta:{index:0},//meta对象的index用来定义当前路由的层级,由小到大,由低到高
    component: resolve => require(['@/components/project1/page/Page1'], resolve),
    children: router11
  },
  {
    path: '/project1/view2/page',
    meta:{index:0},//meta对象的index用来定义当前路由的层级,由小到大,由低到高
    component: resolve => require(['@/components/project1/page/Page2'], resolve),
    children: router21
  },
  {
    path: '/project1/view3/page',
    meta:{index:0},//meta对象的index用来定义当前路由的层级,由小到大,由低到高
    component: resolve => require(['@/components/project1/page/Page3'], resolve),
    children: router31
  },
  // =================================================================================
  {
    path: '/project1/sign',
    meta:{index:0},//meta对象的index用来定义当前路由的层级,由小到大,由低到高
    component: resolve => require(['@/components/project1/common/Sign'], resolve),
  },
];
